﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<GonguklubburinnMVC.Models.MountainE>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Index
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Index</h2>

   <div id = "MountainsGoneTo">
    <fieldset>
    <h3>Síðustu ferðir</h3>
    
    <%  foreach (var item in Model) { %>
<li>
<%: Html.ActionLink(item.Name, "Details" , new {id = item.ID})%><br /><br /> 
 
 
        
        <% } %>
  </fieldset>
 </div> 
 <div id ="MountainsGoneNotTo">
 <fieldset>
 <p> index no </p>
 <% Html.RenderAction("IndexNO"); %>
 </fieldset>
 </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MenuContent" runat="server">

    <div id="menucontainer">
           
                <ul id="menu">              
                    <li><%: Html.ActionLink("Home", "Index", "Home")%></li>
                    <li><%: Html.ActionLink("About", "About", "Home")%></li>
          <li><%: Html.ActionLink("Mountains" ,"Index", "Mountain")%></li>

                </ul>

             </div>
             </asp:Content>
